while True:
 try:
    num1 = int(input('Please add your first number:'))
    num2 = int(input('Please add your second number:'))
    de = num1/num2
    print(f'The result is {de}')
    break
 except ValueError:
  print('The type is wrong.')
 except ZeroDivisionError:
  print('The num2 can not be 0')        